package com.spring.annotation.Injection.serivice;

import com.spring.annotation.Injection.DAO.InjectionDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by wangyg on 2017/1/6.
 */
@Service
public class InjectionServiceImpl implements InjectionService {
	@Autowired
	private InjectionDAO injectionDAO;
	@Override
	public void save(String arg) {
//		System.out.println("保存数据："+arg);
		System.out.println("Service接收参数为："+arg+":"+arg.hashCode());
		arg=arg+":"+arg.hashCode();
		injectionDAO.save(arg);
	}
}
